package com.igeek.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.igeek.boot.entity.ContractApprovals;
import com.igeek.boot.entity.Contracts;
import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.boot.vo.PageQueryVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwj
 * @since 2023-12-26
 */
public interface IContractsService extends IService<Contracts> {

    boolean addContract(Contracts contracts);

    Page<Contracts> findPage(PageQueryVO pageQueryVO);

    String upload(MultipartFile file) throws IOException;

    boolean updateStatus(Integer id, String status);

    boolean delContract(Integer id);

    Page<Contracts> findPageByStatus(PageQueryVO pageQueryVO);

    Map<String, Integer> findPie();
}
